-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global notifications #970
Global notifications #970
Conversation
6f49303
to
ab1edac
Compare
c9e98ac
to
4d87b72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good as first (minimal) version of the feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well from a user (admin) perspective.
…ts for future test purposes and use theme colors.
5afddcf
to
a9704a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments/suggestions, but non are deal breaking, so let me know if and what you want to do with them.
- Since the text is set by admins only, consider removing the 200 char limit.
- In the frontend, I cannot fully remove the text, I can only make it invisible, is this intentional?
- Consider enforcing allowing only one row to exist in this table, see e.g.
017-create-narcis-table.sql
for how to to this, this also allows you to drop the UUID column.
dda60b0
to
a567a45
Compare
[rsd-database] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@ewan-escience thank you for the suggestions. I applied the database trick which is quite neat. As for the text, I think it does make sense to not be able to completely remove it in the frontend. Otherwise, one might accidentally end up with an empty notification bar. If there is nothing else, this PR is ready to be merged. |
[rsd-frontend] Kudos, SonarCloud Quality Gate passed! |
Changes proposed in this pull request:
How to test:
make start
to build app and generate test datawarning
colors defined in the settings (light theme).Example admin section
Example announcement
PR Checklist:
docker-compose.yml